package cn.usts.edu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

@Controller
public class RestFullController {
//  https://www.cnblogs.com/999520hzy/p/13917440.html
//    RestFull风格特点    简洁，高效，安全
//    @PostMapping();  新增
//    @DeleteMapping(); 删除
//    @PutMapping(); 更新
    @GetMapping("/add/{a}/{b}")// 查询
    public String add(@PathVariable int a, @PathVariable int b, Model model){
        model.addAttribute("msg",a+b);
        return "add";
    }


}
